package com.zbkj.crmeb.store.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.zbkj.crmeb.store.model.StoreSeasonMap;
import com.zbkj.crmeb.store.request.StoreSeasonMapRequest;

import java.util.List;

/**
 * 季节映射管理接口
 */
public interface StoreSeasonMapService extends IService<StoreSeasonMap> {

    /**
     * 分页查询
     * @author cdm
     * @date:  2023/07/04
     */
    PageInfo<StoreSeasonMap> pageEntity(StoreSeasonMapRequest request);
    
    /**
     * 列表
     * @author cdm
     * @date:  2023/07/04
     */
    List<StoreSeasonMap> selectEntityList();
    
    /**
     * 通过id查询
     * @author cdm
     * @date:  2023/07/04
     */
    StoreSeasonMap getEntityById(Integer id);
    
    /**
     * 保存
     * @author cdm
     * @date:  2023/07/04
     */
    Integer saveEntity(StoreSeasonMap request);
    
    /**
     * 更新
     * @author cdm
     * @date:  2023/07/04
     */
    Integer updateEntity(StoreSeasonMap request);

    /**
     * 修复季节
     * @param id
     * @return
     */
    Integer repair(Integer id);

    /**
     * 修复所有季节
     * @return
     */
    Integer repairAll();

}
